home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1994-11-15 | 1.6 KB | [TEXT/MMCC] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| Compact Compressed (Unix) (archive/compact)
| ext
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, Tue Nov 15 21:47:48 1994, modified Tue Nov 15 21:47:48 1994, creator 'MMCC', type ASCII, 1074 bytes "MacMemory.c" , at 0x4b2 382 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [MMCC] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0b 4d 61 63 4d 65 6d | 6f 72 79 2e 63 00 00 00 |..MacMem|ory.c...|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 4d 43 | 43 00 00 00 00 00 00 00 |.TEXTMMC|C.......|
|00000050| 00 00 00 00 00 04 32 00 | 00 01 7e aa ef 23 54 aa |......2.|..~..#T.|
|00000060| ef 23 54 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.#T.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 90 07 00 00 |........|........|
|00000080| 2f 2a 20 0d 4d 61 63 4d | 65 6d 6f 72 79 2e 63 0d |/* .MacM|emory.c.|
|00000090| 0d 54 68 69 73 20 69 73 | 20 6d 65 61 6e 74 20 74 |.This is| meant t|
|000000a0| 6f 20 62 65 20 75 73 65 | 64 20 69 6e 20 61 73 73 |o be use|d in ass|
|000000b0| 6f 63 69 61 74 69 6f 6e | 20 77 69 74 68 20 4d 61 |ociation| with Ma|
|000000c0| 63 4d 65 6d 6f 72 79 2e | 68 2c 20 77 68 69 63 68 |cMemory.|h, which|
|000000d0| 20 72 65 64 65 66 69 6e | 65 73 20 74 68 65 0d 53 | redefin|es the.S|
|000000e0| 74 61 6e 64 61 72 64 20 | 43 20 6d 65 6d 6f 72 79 |tandard |C memory|
|000000f0| 20 61 6c 6c 6f 63 61 74 | 69 6f 6e 20 66 75 6e 63 | allocat|ion func|
|00000100| 74 69 6f 6e 73 20 74 6f | 20 62 65 20 69 6d 70 6c |tions to| be impl|
|00000110| 65 6d 65 6e 74 65 64 20 | 64 69 72 65 63 74 6c 79 |emented |directly|
|00000120| 20 61 73 20 63 61 6c 6c | 73 20 74 6f 0d 74 68 65 | as call|s to.the|
|00000130| 20 4d 61 63 69 6e 74 6f | 73 68 20 4d 65 6d 6f 72 | Macinto|sh Memor|
|00000140| 79 20 4d 61 6e 61 67 65 | 72 2e 20 53 6f 20 64 6f |y Manage|r. So do|
|00000150| 6e 27 74 20 77 72 69 74 | 65 20 70 72 6f 67 72 61 |n't writ|e progra|
|00000160| 6d 73 20 74 68 61 74 20 | 65 78 70 6c 69 63 69 74 |ms that |explicit|
|00000170| 6c 79 20 63 61 6c 6c 0d | 22 4d 61 63 52 65 61 6c |ly call.|"MacReal|
|00000180| 6c 6f 63 22 2e 20 54 68 | 69 73 20 69 73 20 66 6f |loc". Th|is is fo|
|00000190| 72 20 70 6f 72 74 61 62 | 6c 65 20 43 20 70 72 6f |r portab|le C pro|
|000001a0| 67 72 61 6d 73 20 74 68 | 61 74 20 63 61 6c 6c 20 |grams th|at call |
|000001b0| 22 72 65 61 6c 6c 6f 63 | 22 2c 20 62 75 74 20 77 |"realloc|", but w|
|000001c0| 68 69 63 68 0d 77 69 6c | 6c 20 62 65 20 63 6f 6d |hich.wil|l be com|
|000001d0| 70 69 6c 65 64 20 74 6f | 20 75 73 65 20 4d 61 63 |piled to| use Mac|
|000001e0| 52 65 61 6c 6c 6f 63 20 | 69 6e 73 74 65 61 64 2c |Realloc |instead,|
|000001f0| 20 66 6f 72 20 62 65 73 | 74 20 70 65 72 66 6f 72 | for bes|t perfor|
|00000200| 6d 61 6e 63 65 20 6f 6e | 20 74 68 65 20 4d 61 63 |mance on| the Mac|
|00000210| 2e 0d 0d 59 6f 75 20 75 | 73 65 20 4d 61 63 4d 65 |...You u|se MacMe|
|00000220| 6d 6f 72 79 2e 68 20 62 | 79 20 61 64 64 69 6e 67 |mory.h b|y adding|
|00000230| 20 74 68 65 20 6c 69 6e | 65 0d 23 69 6e 63 6c 75 | the lin|e.#inclu|
|00000240| 64 65 20 22 4d 61 63 4d | 65 6d 6f 72 79 2e 68 22 |de "MacM|emory.h"|
|00000250| 0d 65 69 74 68 65 72 20 | 74 6f 20 79 6f 75 72 20 |.either |to your |
|00000260| 54 48 49 4e 4b 2f 43 6f | 64 65 57 61 72 72 69 6f |THINK/Co|deWarrio|
|00000270| 72 20 43 20 70 72 6f 6a | 65 63 74 20 70 72 65 66 |r C proj|ect pref|
|00000280| 69 78 20 6f 72 20 74 6f | 20 73 6f 6d 65 20 68 65 |ix or to| some he|
|00000290| 61 64 65 72 20 66 69 6c | 65 20 74 68 61 74 20 79 |ader fil|e that y|
|000002a0| 6f 75 20 0d 69 6e 63 6c | 75 64 65 20 69 6e 20 61 |ou .incl|ude in a|
|000002b0| 6c 6c 20 79 6f 75 72 20 | 66 69 6c 65 73 2e 0d 0d |ll your |files...|
|000002c0| 48 49 53 54 4f 52 59 3a | 0d 31 30 2f 32 35 2f 39 |HISTORY:|.10/25/9|
|000002d0| 34 20 64 67 70 20 64 65 | 6c 65 74 65 64 20 4d 61 |4 dgp de|leted Ma|
|000002e0| 63 4d 65 6d 73 65 74 28 | 29 20 62 65 63 61 75 73 |cMemset(|) becaus|
|000002f0| 65 20 69 74 27 73 20 6e | 6f 20 6c 6f 6e 67 65 72 |e it's n|o longer|
|00000300| 20 6e 65 65 64 65 64 2e | 20 43 6f 64 65 57 61 72 | needed.| CodeWar|
|00000310| 72 69 6f 72 20 34 2e 35 | 20 77 6f 72 6b 73 20 66 |rior 4.5| works f|
|00000320| 69 6e 65 2e 0d 2a 2f 0d | 23 69 6e 63 6c 75 64 65 |ine..*/.|#include|
|00000330| 20 22 4d 61 63 4d 65 6d | 6f 72 79 2e 68 22 0d 23 | "MacMem|ory.h".#|
|00000340| 69 6e 63 6c 75 64 65 20 | 3c 73 74 64 6c 69 62 2e |include |<stdlib.|
|00000350| 68 3e 0d 23 69 6e 63 6c | 75 64 65 20 3c 73 74 64 |h>.#incl|ude <std|
|00000360| 69 6f 2e 68 3e 0d 23 69 | 6e 63 6c 75 64 65 20 3c |io.h>.#i|nclude <|
|00000370| 73 74 72 69 6e 67 2e 68 | 3e 0d 23 69 6e 63 6c 75 |string.h|>.#inclu|
|00000380| 64 65 20 3c 4d 65 6d 6f | 72 79 2e 68 3e 0d 0d 76 |de <Memo|ry.h>..v|
|00000390| 6f 69 64 20 2a 4d 61 63 | 52 65 61 6c 6c 6f 63 28 |oid *Mac|Realloc(|
|000003a0| 76 6f 69 64 20 2a 6f 6c | 64 50 74 72 2c 73 69 7a |void *ol|dPtr,siz|
|000003b0| 65 5f 74 20 73 69 7a 65 | 29 0d 7b 0d 09 76 6f 69 |e_t size|).{..voi|
|000003c0| 64 20 2a 6e 65 77 50 74 | 72 3b 0d 09 0d 09 69 66 |d *newPt|r;....if|
|000003d0| 28 6f 6c 64 50 74 72 3d | 3d 4e 55 4c 4c 29 72 65 |(oldPtr=|=NULL)re|
|000003e0| 74 75 72 6e 20 4e 65 77 | 50 74 72 28 73 69 7a 65 |turn New|Ptr(size|
|000003f0| 29 3b 0d 09 53 65 74 50 | 74 72 53 69 7a 65 28 6f |);..SetP|trSize(o|
|00000400| 6c 64 50 74 72 2c 73 69 | 7a 65 29 3b 0d 09 69 66 |ldPtr,si|ze);..if|
|00000410| 28 4d 65 6d 45 72 72 6f | 72 28 29 29 7b 0d 09 09 |(MemErro|r()){...|
|00000420| 6e 65 77 50 74 72 3d 4e | 65 77 50 74 72 28 73 69 |newPtr=N|ewPtr(si|
|00000430| 7a 65 29 3b 0d 09 09 69 | 66 28 6e 65 77 50 74 72 |ze);...i|f(newPtr|
|00000440| 3d 3d 4e 55 4c 4c 29 72 | 65 74 75 72 6e 20 6e 65 |==NULL)r|eturn ne|
|00000450| 77 50 74 72 3b 0d 09 09 | 6d 65 6d 63 70 79 28 6e |wPtr;...|memcpy(n|
|00000460| 65 77 50 74 72 2c 6f 6c | 64 50 74 72 2c 73 69 7a |ewPtr,ol|dPtr,siz|
|00000470| 65 29 3b 0d 09 09 44 69 | 73 70 6f 73 50 74 72 28 |e);...Di|sposPtr(|
|00000480| 6f 6c 64 50 74 72 29 3b | 0d 09 7d 65 6c 73 65 20 |oldPtr);|..}else |
|00000490| 6e 65 77 50 74 72 3d 6f | 6c 64 50 74 72 3b 0d 09 |newPtr=o|ldPtr;..|
|000004a0| 72 65 74 75 72 6e 20 6e | 65 77 50 74 72 3b 0d 7d |return n|ewPtr;.}|
|000004b0| 0d 0d 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000500| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00000510| 00 00 5c ff 11 4c 45 76 | 65 6e 74 53 65 6d 61 70 |..\..LEv|entSemap|
|00000520| 68 6f 72 65 2e 68 02 00 | 00 00 54 45 58 54 4d 4d |hore.h..|..TEXTMM|
|00000530| 0b 4d 61 63 4d 65 6d 6f | 72 79 2e 63 02 00 00 00 |.MacMemo|ry.c....|
|00000540| 50 61 72 74 53 49 54 21 | 00 00 00 00 00 00 00 00 |PartSIT!|........|
|00000550| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 ab bf ee 64 00 00 | 00 00 00 00 01 7e 00 01 |.....d..|.....~..|
|00000580| 00 00 00 00 00 00 00 00 | 00 00 00 00 0e 00 00 00 |........|........|
|00000590| 5c ff 08 4c 4c 69 6e 6b | 2e 63 70 00 02 00 00 00 |\..LLink|.cp.....|
|000005a0| 54 45 58 54 4d 4d 43 43 | 00 00 b1 e0 b1 e0 00 00 |TEXTMMCC|........|
|000005b0| 00 00 5d 04 00 00 00 00 | 03 a9 00 00 26 00 00 00 |..].....|....&...|
|000005c0| 00 00 01 7e 00 00 26 00 | a8 2d 8f 7c a9 e4 94 d4 |...~..&.|.-.|....|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 99 f9 | 00 01 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 99 f8 00 01 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000600| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00000610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000620| 00 00 00 00 00 00 00 06 | 00 04 00 2a 00 03 01 8d |........|...*....|
|00000630| 02 7d 00 7a 00 18 01 89 | 02 7c aa ee dd 1b 00 00 |.}.z....|.|......|
|00000640| 02 fa 00 00 02 fa 00 00 | 00 00 00 00 00 00 01 00 |........|........|
|00000650| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 93 4b 30 |...L...L|...2..K0|
|00000660| 1f f4 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.......2|..MPSR..|
|00000670| 00 0a 03 ed ff ff 00 00 | 00 00 00 93 48 84 00 00 |........|....H...|
+--------+-------------------------+-------------------------+--------+--------+